home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVMALLOW.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  2KB  |  41 lines

  1. /*=======================================================*/
  2. /*  TVMALLOW.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_allow  allow specific DESQview user commands    */
  16. /*   Ralf Brown 4/3/88                                   */
  17. /*=======================================================*/
  18.  
  19. void pascal TVwin_allow(OBJECT win,int command)
  20. {
  21.    static BYTE allow_stream[] = { S_MANAGER(1), 0 } ;
  22.  
  23.    allow_stream[4] = command | MS_ALLOW ;
  24.    TVwin_stream(win,allow_stream) ;
  25. }
  26.  
  27. /*=======================================================*/
  28. /* TVwin_disallow  disallow specific DESQview user cmds  */
  29. /*   Ralf Brown 4/3/88                                   */
  30. /*=======================================================*/
  31.  
  32. void pascal TVwin_disallow(OBJECT win,int command)
  33. {
  34.    static BYTE disallow_stream[] = { S_MANAGER(1), 0 } ;
  35.  
  36.    disallow_stream[4] = command | MS_DISALLOW ;
  37.    TVwin_stream(win,disallow_stream) ;
  38. }
  39.  
  40. /* End of TVMALLOW.C */
  41.